//
//  SkillView.m
//  BasketballClub
//
//  Created by 孙鸿吉 on 16/1/6.
//  Copyright © 2016年 孙鸿吉. All rights reserved.
//

#import "SkillView.h"

@implementation SkillView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addViews];
    }
    return self;
}
- (void)addViews
{
    self.skillTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 44 * LAYOUT_SIZE_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT - (44 * LAYOUT_SIZE_HEIGHT)) style:UITableViewStylePlain];
    self.skillTableView.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.skillTableView];
    
    //导航视图
    self.navigationView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 64 * LAYOUT_SIZE_HEIGHT)];
    self.navigationView.backgroundColor = ColorHex(0x0d1c38);
    [self addSubview:self.navigationView];
    //导航标题
    self.navigationTitleLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2 - (25 * LAYOUT_SIZE), 29 * LAYOUT_SIZE_HEIGHT, 50* LAYOUT_SIZE, 26 * LAYOUT_SIZE_HEIGHT)];
    self.navigationTitleLabel.text = @"技巧";
    self.navigationTitleLabel.textAlignment = 1;
    self.navigationTitleLabel.textColor = [UIColor yellowColor];
    self.navigationTitleLabel.font = [UIFont systemFontOfSize:17 * LAYOUT_SIZE];
    [self.navigationView addSubview:self.navigationTitleLabel];
    
}
@end
